import hockeystreams

# xbmc-hockey-streams
# author: craig mcnicholas
# contact: craig@designdotworks.co.uk

print '# XBMC Hockey Streams Unit Tests #'
print 'I need some information before running these tests!'

# Get username and password
username = raw_input("Username: ")
password = raw_input("Password: ")

# Test logging in
token = hockeystreams.login(username, password)

print "Token: " + token

# Test retrieving the available archived game dates
dates = hockeystreams.availableDates(username, token)

print "Available Dates: " + ', '.join(map(str, dates))

events = hockeystreams.events(username, token, dates[100])

print "Events: " + '\n'.join(map(str, events))

stream = hockeystreams.eventStream(username, token, events[0])

print "Stream: " + stream
